﻿<!DOCTYPE html>
<html lang="es">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title - SISPE CEYCA RRHH</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />

    @Styles.Render("~/Content/css")
    @Styles.Render("~/bundles/bootstrap")
    <link rel="stylesheet" href="~/Content/bootstrap.min.css">

    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")

    <link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"> </script>


</head>
<body>
    <header>
        <div class="content-wrapper">
            <div class="float-left">

                <p class="site-title">

                    @*@Html.ActionLink("su logotipo aquí", "Index", "Home")*@
                    <a href="@Url.Action("Index", "Home")">
                        <img src ="@Url.Content("~/Images/ceyca - logo.png")" title="Inicio" alt="Inicio" /></a>
                </p>

            </div>
            <div class="float-right">
                <section id="login">
                    @Html.Partial("_LoginPartial")
                </section>
                <nav>
                    <ul id="menu">
                        
                        <li>@Html.ActionLink("Inicio", "Index", "Home")</li>
                        
                        @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("ADMINISTRADOR"))
                        {   
                            <li>@Html.ActionLink("Trabajadores", "Index", "Trabajador")</li>   
                            <li>@Html.ActionLink("Contratos", "Index", "Contrato")</li>   
                            <li>@Html.ActionLink("Administracion de Usuarios", "RoleAddToUser", "Roles")</li>
                            <li>@Html.ActionLink("Tareos", "Index", "Tareo")</li>
                            <li>@Html.ActionLink("Liquidaciones", "Index", "Liquidaciones")</li>
                        }
                        @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("ADMISION"))
                        {
                            <li>@Html.ActionLink("Trabajadores", "Index", "Trabajador")</li>   
                        }
                        @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("JEFE DE AREA"))
                        {
                            <li>@Html.ActionLink("Liquidaciones", "Index", "Liquidaciones")</li>
                        }
                        @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("RRHH"))
                        {
                            <li>@Html.ActionLink("Contratos", "Index", "Contrato")</li>   
                            <li>@Html.ActionLink("Trabajadores", "Index", "Trabajador")</li>
                        }
                        @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("TAREADOR"))
                        {
                            <li>@Html.ActionLink("Tareos", "Index", "Tareo")</li>
                        }

                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <div id="body">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>

    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-left">
                <p>&copy; @DateTime.Now.Year - SISPE CEYCA RRHH</p>
            </div>
        </div>
    </footer>


    @RenderSection("scripts", required: false)
</body>
</html>
